<!--%import("filter/update_member_group.xml")-->

<!--#include("_project_header.html")-->

<h3 class="xeAdmin">{$lang->cmd_manage_member_list}</h3>
<p class="summary">{$lang->about_project_act[$act]}</p>

<form action="./" method="get" class="adminSearch" style="margin-bottom:10px;">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="vid" value="{$vid}" />
<input type="hidden" name="act" value="{$act}" />
    <fieldset>

        <select name="selected_group_srl">
            <option value="0">{$lang->group}</option>
            <!--@foreach($group_list as $key => $val)-->
            <option value="{$val->group_srl}" <!--@if($selected_group_srl==$val->group_srl)-->selected="selected"<!--@end-->>{$val->title}</option>
            <!--@end-->
        </select>
        <select name="search_target">
            <option value="">{$lang->search_target}</option>
            <!--@foreach($lang->search_target_list as $key => $val)-->
            <option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
            <!--@end-->
        </select>
        <input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText" />
        <span class="button black strong"><input type="submit" value="{$lang->cmd_search}" /></span>
        <a href="#" onclick="location.href='{getUrl('','module',$module,'act',$act)}';return false;" class="button"><span>{$lang->cmd_cancel}</span></a>
    </fieldset>
</form>

<form method="post" action="./" onsubmit="return procFilter(this,update_member_group);" id="siteMembers">
    <table cellspacing="0" class="crossTable">
    <thead>
        <tr>
            <th scope="col"><div>{$lang->no}</div></th>
            <th scope="col" class="quarter_wide"><div>{$lang->nick_name}</div></th>
            <th scope="col" class="quarter_wide"><div>{$lang->user_id}</div></th>
            <th scope="col" class="quarter_wide"><div>{$lang->user_name}</div></th>
            <th scope="col" class="quarter_wide"><div>{$lang->group}</div></th>
            <th scope="col"><div>{$lang->signup_date}</div></th>
            <th scope="col"><div>{$lang->last_login}</div></th>
        </tr>
    </thead>
    <tbody>
        <!--@foreach($member_list as $no => $val)-->
        {@ $val->group_list = $val->group_list ? implode(', ', $val->group_list):'';}
        <tr class="row{$cycle_idx}">
            <td class="center number"><input type="checkbox" name="cart" value="{$val->member_srl}" /> {$no}</td>
            <td class="nowrap"><span class="member_{$val->member_srl}">{htmlspecialchars($val->nick_name)}</span></td>
            <td class="nowrap">{htmlspecialchars($val->user_id)}</td>
            <td class="nowrap">{htmlspecialchars($val->user_name)}</td>
            <td class="nowrap">
                <!--@if($members_groups[$val->member_srl])-->
                    {implode(',',$members_groups[$val->member_srl])}
                <!--@else-->
                &nbsp;
                <!--@end-->
            </td>
            <td class="date center nowrap">{zdate($val->regdate,"Y-m-d H:i:s")}</td>
            <td class="date center nowrap">{zdate($val->last_login,"Y-m-d H:i:s")}</td>
        </tr>
        <!--@end-->
        <tr class="row1">
            <th colspan="8" class="button">
                {$lang->do_selected_member}
                <select name="group_srl">
                    <!--@foreach($group_list as $key=>$val)-->
                    <option value="{$val->group_srl}">{$val->title}</option>
                    <!--@end-->
                </select><span class="button black strong"><input type="submit" value="{$lang->cmd_modify}" /></span>
                <a href="#" onclick="doRemoveMember('{$lang->confirm_delete}');return false;" class="button red"><span>{$lang->cmd_delete}</span></a>
            </th>
        </tr>
    </tbody>
    </table>
</form>

<!-- 페이지 네비게이션 -->
<div class="pagination a1">
    <a href="{getUrl('page','','module_srl','')}" class="prevEnd">{$lang->first_page}</a>
    <!--@while($page_no = $page_navigation->getNextPage())-->
        <!--@if($page == $page_no)-->
            <strong>{$page_no}</strong>
        <!--@else-->
            <a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a>
        <!--@end-->
    <!--@end-->
    <a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="nextEnd">{$lang->last_page}</a>
</div>

<!--#include("_project_footer.html")-->
